package com.hbnu.domain;

public class Books {
    private int bid;
    private String bname;
    private String bauthor;
    private String bpublisher;
    private int bnumber;

    public Books() {
    }

    public Books(int bid, String bname, String bauthor, String bpublisher, int bnumber) {
        this.bid = bid;
        this.bname = bname;
        this.bauthor = bauthor;
        this.bpublisher = bpublisher;
        this.bnumber = bnumber;
    }

    public Books(String bname, String bauthor, String bpublisher, int bnumber) {
        this.bname = bname;
        this.bauthor = bauthor;
        this.bpublisher = bpublisher;
        this.bnumber = bnumber;
    }

    public int getBid() {
        return bid;
    }

    public void setBid(int bid) {
        this.bid = bid;
    }

    public String getBname() {
        return bname;
    }

    public void setBname(String bname) {
        this.bname = bname;
    }

    public String getBauthor() {
        return bauthor;
    }

    public void setBauthor(String bauthor) {
        this.bauthor = bauthor;
    }

    public String getBpublisher() {
        return bpublisher;
    }

    public void setBpublisher(String bpublisher) {
        this.bpublisher = bpublisher;
    }

    public int getBnumber() {
        return bnumber;
    }

    public void setBnumber(int bnumber) {
        this.bnumber = bnumber;
    }

    @Override
    public String toString() {
        return "Books{" +
                "bid=" + bid +
                ", bname='" + bname + '\'' +
                ", bauthor='" + bauthor + '\'' +
                ", bpublisher='" + bpublisher + '\'' +
                ", bnumber=" + bnumber +
                '}';
    }
}
